package com.android.kotlincoroutinemvvmdemo.event
import android.content.Context
import com.android.kotlincoroutinemvvmdemo.TaskAffinityActivity
import com.android.kotlincoroutinemvvmdemo.adapter.DayNightModeAdapter
import com.android.kotlincoroutinemvvmdemo.bean.OneFi
import com.android.kotlincoroutinemvvmdemo.startActivity

class DayNightEvent(context: Context, adapter: DayNightModeAdapter) {

    private val mContext = context
    private val mAdapter = adapter

    fun clickItemEvent(oneFi: OneFi) {
        when (oneFi.itemPosition) {
            0 -> {
               mContext.startActivity<TaskAffinityActivity>()
            }
            else -> {

            }
        }
    }

}